package redis

import "strconv"

func SyncCourseStock(courseId, stock int) {

	key := "course_stock:course_id_" + strconv.Itoa(courseId)
	for i := 0; i < stock; i++ {
		Rdb.LPush(key, courseId)
	}

}
